﻿namespace Glue.Converters
{
    public abstract class BaseSimpleConverter<T1,T2>:BaseConverter<T1,T2>
    {
        public abstract T2 MapTowardsRight(T1 from);
        public abstract T1 MapTowardsLeft(T2 from);

        public override T2 MapTowardsRight(T1 from, T2 to)
        {
            return MapTowardsRight(from);
        }

        public override T1 MapTowardsLeft(T2 from, T1 to)
        {
            return MapTowardsLeft(from);
        }
    }
}
